package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/*
* 封装实体类
* lombok
* 响应的注解：
*   @Data:get set方法生成
*   @AllArgsConstructor
*   @NoArgsConstructor
*   @Builder:支持链式编程
*   @Slf4j：日志
*
* hutool
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Slf4j
public class User {

    private String username;
    private String pwd;


    public static void main(String[] args) {
        User user=new User();
        user.setUsername("admin");
        System.out.println(user);
        //链式编程创建对象并赋值
        User u=User.builder().username("貂蝉").pwd("666").build();
    }


}
